package com.kuang.pet.controller;

import com.kuang.bascic.utils.AjaxResult;
import com.kuang.pet.domain.SearchMasterMsg;
import com.kuang.pet.service.SearchMasterMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/earchMasterMsg")
public class SearchMasterMsgController {
    @Autowired
    private SearchMasterMsgService searchMasterMsgService;
    @PostMapping("/publish")
    public AjaxResult searchMaster(@RequestBody SearchMasterMsg msg, HttpServletRequest req){
           searchMasterMsgService.publish(msg,req);
        return AjaxResult.me();
    }

}
